import * as constants from './constants';
import { fromJS } from 'immutable';

// immutable库  确保state不会被修改
// immutable对象

const defaultState = fromJS({
    accessNum: 0,
    likeNum: 0,
    hateNum: 0,
    articleNum: 0
});

export default (state = defaultState, action) => {
    switch(action.type) {
        case constants.INIT_HOME_INFO:
          console.log('hello');
          break;
        default:
          return state;
    }
}